<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- <script src="demo-01.js"></script> -->
    <script src="./MyPromise-test.js"></script>
    <script>
    //   let string = "";
    //   let promise = new MyPromise((resolve, reject) => {
    //     console.log("new MyPromise resolve()");
    //     resolve("hello");
    //   });
    //   console.log("定义promis then() 的回调函数");

    //   promise.then((res) => {
    //     console.log("执行 promis then() 的回调函数");
    //     expect(res).toBe("hello");
    //   });
    </script>
  </body>
</html>
